﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Model;
using Controller;

namespace Facade
{
    public class DashboardFacade
    {
        public IList<Dashboard> GetDashboardData(int year, Employee User, string sSearch, int PageNumber, int Datalength, string SortCol, string SortDirection, out int TotalData)
        {
            IList<Dashboard> d = new List<Dashboard>();
            DashboardController cont = new DashboardController();
            d = cont.GetDashboardData(year, User,sSearch,PageNumber,Datalength,SortCol,SortDirection,out TotalData);
            return d;
        }

        public string GetTotalWeightKPI(int year, int employeeID)
        {
            DashboardController cont = new DashboardController();
            return cont.GetTotalWeightKPI(year, employeeID);
        }

        public string GetTotalScoreKPI(int year, int employeeID)
        {
            DashboardController cont = new DashboardController();
            return cont.GetTotalScoreKPI(year, employeeID);
        }

        public IList<DashboardDetail> GetDashboardDetailData(int month, int year, Employee User)
        {
            IList<DashboardDetail> d = new List<DashboardDetail>();
            DashboardController cont = new DashboardController();
            d = cont.GetDashboardDetailData(year, month, User);
            return d;
        }

        public IList<DashboardRealization> GetDashboardRealization(int KPIAssignID, int year, Employee User)
        {
            IList<DashboardRealization> d = new List<DashboardRealization>();
            DashboardController cont = new DashboardController();
            d = cont.GetDashboardRealization(KPIAssignID, year, User);
            return d;
        }
    }
}